package com.example.myxfdemo02;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.bkasr.BkAsr;
import com.iflytek.xfMscMain.AsrSayDemo;
import com.iflytek.xfMscMain.AsrFileDemo;



public class MainActivity extends AppCompatActivity {
    private Button myBT1;
    private Button myBT2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        myBT1 = findViewById(R.id.myBT1);
        myBT2 = findViewById(R.id.myBT2);
        myBT1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, AsrSayDemo.class);
                startActivity(intent);
            }
        });
        myBT2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, AsrFileDemo.class);
                startActivity(intent);
//                test();
            }
        });
        PermissionsUtil.isGrantExternalAO(MainActivity.this, 110);
    }

}